<?php
    #Include the connect.php file
    include($_SERVER["DOCUMENT_ROOT"].'/CTAN/models/tietmuc.php');
    $tietmuc = new tietmuc();
    
    $tietmuc->setMaTietMuc($_REQUEST['matietmuc']);
    $result = $tietmuc->danhSachNgheSiChuaThamGia();
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        $danhsachnghesi[] = array(
            'ma_nhom' => $row['ma_nhom'],
            'ten_nhom' => $row['ten_nhom'],
            'ma_nghe_si' => $row['ma_nghe_si'],
            'nghe_danh' => $row['nghe_danh']
        );
    }
    echo json_encode($danhsachnghesi, JSON_UNESCAPED_UNICODE);
?>